import request from '@/utils/request'

// 查询楼宇详情列表
export function listDormitorybuilding(query) {
  return request({
    url: '/stuinfo/dormitorybuilding/list',
    method: 'get',
    params: query
  })
}

// 查询楼宇详情详细
export function getDormitorybuilding(buildingId) {
  return request({
    url: '/stuinfo/dormitorybuilding/' + buildingId,
    method: 'get'
  })
}

// 新增楼宇详情
export function addDormitorybuilding(data) {
  return request({
    url: '/stuinfo/dormitorybuilding',
    method: 'post',
    data: data
  })
}

// 修改楼宇详情
export function updateDormitorybuilding(data) {
  return request({
    url: '/stuinfo/dormitorybuilding',
    method: 'put',
    data: data
  })
}

// 删除楼宇详情
export function delDormitorybuilding(buildingId) {
  return request({
    url: '/stuinfo/dormitorybuilding/' + buildingId,
    method: 'delete'
  })
}
